/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niuweb.isad.core;

import java.sql.ResultSet;

/**
 *
 * @author niuxg
 */
public class Query {
    private String _sql;
    private float _time;
    private int _rows;
    private ResultSet _rs;
    
    public Query setSQL(String sql){
        _sql = sql;
        return this;
    }
    public String getSQL(){
        return _sql;
    }
    public float getTime(){
        return _time;
    }
    public int getRows(){
        return _rows;
    }
    public ResultSet getResult(){
        return _rs;
    }
    
    public Query query(){
        // Write code here.
        iDBConn Conn = ISAD.DBConn;
        Conn.query(this);
        return this;
    }
}
